package edu.langnan.xiaoli.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.langnan.xiaoli.core.domain.VolunteerDO;
import edu.langnan.xiaoli.core.dto.VolunteerDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author cql
 */
@Mapper
public interface VolunteerMapper extends BaseMapper<VolunteerDO> {

    /**
     * 获取志愿活动列表
     *
     * @return
     */
    List<VolunteerDTO> volunteerList();

    /**
     * 获取志愿活动信息
     *
     * @param vid
     * @return
     */
    VolunteerDTO findVolunInfoById(Integer vid);

    /**
     * 获取学生的参与的志愿活动
     *
     * @param stuId
     * @return
     */
    List<VolunteerDTO> studentOfVolunteerList(Integer stuId);
}
